<?php

namespace App\Libs\Strategy;

use Illuminate\Database\Eloquent\Model;

class DataEntry implements IStrategy
{

    private $data;

    private $model;

    public function __construct($data,Model $model)
    {
        $this->data = $data;
        $this->model = $model;
    }

    public function algorithm()
    {
        return $this->model->create($this->data);
    }
}
